package com.mulanweb.handler;

import com.mulanweb.api.controller.SupportController;
import com.mulanweb.api.module.controller.BaseController;
import com.mulanweb.api.module.model.Ticket;

import java.util.List;

/**
 * Created by Administrator on 2016/12/19 0019.
 */
public class IndexController extends BaseController {
        public void index(){
            renderJsp("/website/index.jsp");
        }

   /* public void test(){
        List<Ticket> tickets = Ticket.dao.find("select * from ticket");
        for(Ticket tt : tickets){
            tt.setPrice(Float.parseFloat(Math.round(tt.getNzdPrice()*5)+""));
            tt.setOldPrice(Float.parseFloat(Math.round(tt.getOldNzdPrice()*5)+""));
            //tt.setDescription(tt.getDescription()+"<br><p>注：新西兰元对人民币汇率按5计算</p>");
            System.out.println("ID:"+tt.getId()+"--------结果："+tt.update());
        }
    }*/
}
